workspace "live555"
	configurations { "Debug", "Release"}
	platforms { "x32", "x64" }
	location "build"
	includedirs {
		"BasicUsageEnvironment/include",
		"groupsock/include",
		"liveMedia/include",
		"UsageEnvironment/include",
		
	}
	configuration {"windows"}
        defines {"WIN32","_WIN32","_CRT_SECURE_NO_WARNINGS"}
		flags       { "StaticRuntime" }
		
	configuration {"macosx"}
		defines { "__APPLE__", "MACOSX","POSIX"}
	
    configuration {"linux"}	
		defines { "LINUX", "linux" ,"POSIX"}
	
	filter "platforms:x32"
		architecture "x32"	
		
	filter "platforms:x64"
		architecture "x64"	
	
	filter "configurations:Debug"
		defines { "DEBUG" , "_DEBUG" ,"_CRTDBG_MAP_ALLOC"}
		flags { "Symbols" }
		optimize "Debug"
		
	filter "configurations:Release"
		defines { "NDEBUG"}
		optimize "On"
		flags { "OptimizeSpeed", "EnableSSE2" }
	
project "BasicUsageEnvironment"
	kind "StaticLib"
	language "C++"	
	includedirs {
		"BasicUsageEnvironment",
		"BasicUsageEnvironment/include",
	}
	files{
		"BasicUsageEnvironment/**.hh",
		"BasicUsageEnvironment/**.cpp",
	}

project "groupsock"
	kind "StaticLib"
	language "C++"	
	includedirs {
		"groupsock",
		"groupsock/include"
	}
	files{
		"groupsock/**.hh",
		"groupsock/**.cpp",
		"groupsock/**.c",
	}	
	
project "liveMedia"
	kind "StaticLib"
	language "C++"	
	includedirs {
		"liveMedia",
		"liveMedia/include"
	}
	files{
		"liveMedia/**.hh",
		"liveMedia/**.cpp",
		"liveMedia/**.c",
	}	
	
project "UsageEnvironment"
	kind "StaticLib"
	language "C++"	
	includedirs {
		"UsageEnvironment",
		"UsageEnvironment/include"
	}
	files{
		"UsageEnvironment/**.hh",
		"UsageEnvironment/**.cpp",
	}		
	
configuration {"windows"}
	project "WindowsAudioInputDevice"
		kind "StaticLib"
		language "C++"	
		includedirs {
			"WindowsAudioInputDevice",
		}
		files{
			"WindowsAudioInputDevice/**.hh",
			"WindowsAudioInputDevice/**.cpp",
		}
	
	
project "mediaServer"
	kind "ConsoleApp"
	language "C++"

	files {
		"mediaServer/**.hh",
		"mediaServer/**.cpp",
	}
	links{"BasicUsageEnvironment","groupsock","liveMedia","UsageEnvironment"}
	
	configuration {"windows"}
		links{"ws2_32"}
		
project "proxyServer"
	kind "ConsoleApp"
	language "C++"

	files {
		"proxyServer/**.hh",
		"proxyServer/**.cpp",
	}
	
	links{"BasicUsageEnvironment","groupsock","liveMedia","UsageEnvironment"}
	configuration {"windows"}
		links{"ws2_32"}

	
	
